---
title: "Wget笔记"
categories:
- linux
tags:
---

<div id="content">
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgb9160ee">FAQ</a>
<ul>
<li><a href="#orgfd2ca23">下载网站</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="outline-2" id="outline-container-orgb9160ee">
<h2 id="orgb9160ee">FAQ</h2>
<div class="outline-text-2" id="text-orgb9160ee">
</div>
<div class="outline-3" id="outline-container-orgfd2ca23">
<h3 id="orgfd2ca23">下载网站</h3>
<div class="outline-text-3" id="text-orgfd2ca23">
<p>
wget -r -p -np -k <a href="http://xxx.com/xxx/">http://xxx.com/xxx/</a>
</p>
<ul class="org-ul">
<li>-r, –recursive（递归） specify recursive download.（指定递归下载）</li>
<li>-k, –convert-links（转换链接） make links in downloaded HTML point to local files.（将下载的HTML页面中的链接转换为相对链接即本地链接）</li>
<li>-p, –page-requisites（页面必需元素） get all images, etc. needed to display HTML page.（下载所有的图片等页面显示所需的内容）</li>
<li>-np, –no-parent（不追溯至父级） don't ascend to the parent directory.</li>
</ul>
</div>
</div>
</div>
</div>
<div class="status" id="postamble">
<p class="author">Author: gdme1320</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
